﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SnakeGame_Roman
{


   public class MoveGenerator
    {

    
        public event EventHandler Move;
        PieseOfSnake piese1 = new PieseOfSnake(1,1);
       
       
       public void ChangeDirection(Snake snake1)
        {                      
          OnMove();
        }
        protected virtual void OnMove()
        {
            if (this.Move != null)
                this.Move(this, null);
        }

      
    }
}
